package com.easyadmin.task;

import com.easyadmin.mappers.SysOperationLogMapper;
import com.easyadmin.mappers.SysTaskRunLogMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component("taskComponent")
public class TaskComponent {
    private static final Logger logger = LoggerFactory.getLogger(TaskComponent.class);

    @Resource
    private SysTaskRunLogMapper sysTaskRunLogMapper;

    @Resource
    private SysOperationLogMapper sysOperationLogMapper;

    public void deleteHistoryRunLog() {
        sysTaskRunLogMapper.deleteHistoryRunLog();

        sysOperationLogMapper.deleteHistoryLog();
    }
}
